package com.ling.toolbox.util;

import android.graphics.drawable.Drawable;
import android.support.v4.graphics.drawable.DrawableCompat;

/**
 * Created by lingquan(quan.ling@hotmail.com) on 16/7/26.
 */
public class DrawableUtil {
    public static Drawable tint(Drawable drawable, int tint) {
        Drawable drawableCompat = DrawableCompat.wrap(drawable);
        DrawableCompat.setTint(drawableCompat, tint);
        return drawableCompat;
    }
}
